ride with the punches

ride with the punches
(intransitive, of a boxer) To deflect the force of an opponent's punches by moving the body adroitly.
(intransitive, figuratively, by extension) To cope with adversity by being flexible in attitude.